home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The 640 MEG Shareware Studio 2
/
The 640 Meg Shareware Studio CD-ROM Volume II (Data Express)(1993).ISO
/
clang
/
nn.zip
/
M-I80286.H
< prev
next >
Wrap
C/C++ Source or Header
|
1989-12-31
|
1KB
|
56 lines
/************** Machine (and compiler) dependent definitions. **************
*
* This is for the Intel 80286 processor.
*/
/* MACHINE TYPE DEFINED TYPE VALUE RANGE */
typedef unsigned char int8; /* 0 .. 255 */
typedef short int16; /* -10,000 .. 10,000 */
typedef long int32; /* -100,000 .. 100,000 */
typedef unsigned long uint32; /* 0 .. 2^31-1 */
#define I286_BUG
/*
* Define NO_VARARGS if the varargs feature is not available
*
* Also define NO_VARARGS if the vprintf/vsprintf routines are not
* available (however, this will only by safe on some machines, like
* the VAX).
*
*/
/* #define NO_VARARGS */
#ifdef NETWORK_DATABASE
/*
* Define NETWORK_BYTE_ORDER if the machine's int32's are
* already in network byte order, i.e. m68k based.
*/
/* #define NETWORK_BYTE_ORDER /* THEY ARE NOT */
/*
* Include appropriate files or define macroes or functions (include them
* in data.c) to convert longs and shorts to and from network byte order.
*
* Needs byte swapping here!
*/
YOU LOSE -- HOW IS THIS DONE ON THE 286?
/*
* define something appropriate below
*/
#define htonl(l) ... /* host long to network long */
#define ntohl(l) ... /* network long to host long */
#endif /* NETWORK DATABASE */